package com.fanco.learn_datastruct_leetcode.designpattern.proxy.staticproxy;

/**
 * @author qiaowang 2022/2/16
 * 描述
 */
public class TeacherDaoProxy implements ITeacherDao{

    private ITeacherDao target;

    public TeacherDaoProxy(ITeacherDao target) {
        this.target = target;
    }

    @Override
    public void teach() {
        System.out.println("代理对象开始代理");
        target.teach();
        System.out.println("代理对象结束代理");
    }
}
